package view;

import javax.swing.Icon;

import component.Icons;

import view.tables.IconizedInterface;

public class StatusMessage implements IconizedInterface {
	private Icon icon;
	private String text;
	
	public StatusMessage(String text){
		this(text, Icons.INFO);
	}
	
	public StatusMessage(String text, Icon icon){
		this.text = text;
		this.icon = icon;
	}

	@Override
	public Icon getIcon() {
		return icon;
	}
	
	@Override
	public String toString(){
		return text;
	}

}
